using System;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace CoreEx.Samples.DomainModel
{

	/// <summary>
	/// A class that represents Territories.
	/// </summary>
	[Serializable]
	public class Territory
	{
		#region Private Members

		private IList<EmployeeTerritory> _employeeTerritories = new List<EmployeeTerritory>();

		#endregion

		/// <summary>
		/// Gets or sets the Territory ID
		/// </summary>
		public virtual string TerritoryID { get; set; }

		/// <summary>
		/// Gets or sets the Territory Description
		/// </summary>
		public virtual string TerritoryDescription { get; set; }

		/// <summary>
		/// Gets the Employee Territories
		/// </summary>
		public IList<EmployeeTerritory> EmployeeTerritories 
		{
			get { return _employeeTerritories; }
		}

		/// <summary>
		/// Gets or sets the Region
		/// </summary>
		public virtual Region Region { get; set;}
	}
}
